﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Duck : Animal, IEat, ISwim
    {
        public void Eat()
        {
            Console.WriteLine("会吃饭饭！");
        }

        public void Swim()
        {
            Console.WriteLine("会游泳哦!");
        }
        public Duck(string name) : base(name)
        {

        }
    }
}
